home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / PASSDK30.ZIP;1 / DISK1.ZIP / PAS / SUBS / CDROM / MAKEFILE < prev    next >
Encoding:
Text File  |  1993-03-17  |  2.3 KB  |  104 lines

  1. ##
  2. ## This make file controls the building of the any model library for
  3. ## the CDROM routines.
  4. ##
  5. ## To build a LARGE model,    "nmake S=L M=4"
  6. ## To build a COMPACT model,    "nmake S=C M=3"
  7. ## To build a MEDIUM model,    "nmake S=M M=2"
  8. ## To build a SMALL model,    "nmake S=S M=1"
  9. ## To build a TINY model,    "nmake S=T M=0"
  10. ##
  11. ## The default is to build a small model.
  12.  
  13. !ifndef S
  14. S= s
  15. !endif
  16. !ifndef S
  17. M= 1
  18. !endif
  19.  
  20. #############################################################################
  21.  
  22. ## The following are command line options compiler, assembler selection
  23.  
  24. !ifdef BCC
  25.  
  26. ## tools selection
  27.  
  28. MA= tasm /JQUIRKS /JMASM51 /JNOSMART /m2
  29. CL= bcc /I$(CINC)
  30. LK= tlink
  31. LB= tlib
  32.  
  33. ## switches
  34.  
  35. MM= /mx
  36. MZ=    # /zi
  37. CZ=    # -v
  38. CO=    # -Od
  39. CMOD= -m$(S)
  40. ONAM= -o
  41.  
  42. !else
  43.  
  44. ## tools selection
  45.  
  46. MA= masm
  47. CL= cl
  48. LK= link
  49. LB= lib
  50.  
  51. ## switches
  52.  
  53. MM= /Mx
  54. MZ=    # /Zi
  55. CZ= -Zp # -Zi
  56. CO=    # -Od
  57. CMOD=-A$(S)
  58. ONAM= -Fo
  59.  
  60. !endif
  61.  
  62. ## The following are command line options for the librarian
  63.  
  64. LIBDIR= ..\..\inc
  65.  
  66. #############################################################################
  67.  
  68. ## The default is to build the model-specific library, and is included
  69. ## for compatibility for the "make" program (this is an "nmake" file).
  70.  
  71. !ifdef BCC
  72. default: $(LIBDIR)\bv$(S)lib.lib
  73. !else
  74. default: $(LIBDIR)\mv$(S)lib.lib
  75. !endif
  76.  
  77. ## The following are the command lines to build each module.
  78. ## The output file is named according to the model, the first letter
  79. ## of the name representing the model (L, C, M, S, T)
  80.  
  81. $(S)mscdex.obj: mscdex.asm 
  82.     $(MA) $(MM) $(MZ) /DMODELSIZE=$(M) mscdex.asm, $(S)mscdex.obj;
  83.  
  84. $(S)cdrom.obj: cdrom.c 
  85.     $(CL) -c $(CO) $(CZ) $(CMOD) $(ONAM)$(S)cdrom.obj cdrom.c
  86.  
  87. $(S)cdmas.obj: cdmaster.c
  88.     $(CL) -c $(CO) $(CZ) $(CMOD) $(ONAM)$(S)cdmas.obj cdmaster.c
  89.  
  90. ## The following are the command lines for the librarian
  91.  
  92. !ifdef BCC
  93. $(LIBDIR)\bv$(S)lib.lib: $(S)mscdex.obj $(S)cdrom.obj $(S)cdmas.obj
  94.     $(LB) $(LIBDIR)\bv$(S)lib -+$(S)mscdex.obj
  95.     $(LB) $(LIBDIR)\bv$(S)lib -+$(S)cdrom.obj
  96.     $(LB) $(LIBDIR)\bv$(S)lib -+$(S)cdmas.obj
  97. !else
  98. $(LIBDIR)\mv$(S)lib.lib: $(S)mscdex.obj $(S)cdrom.obj $(S)cdmas.obj
  99.     $(LB) $(LIBDIR)\mv$(S)lib -+$(S)mscdex.obj ,,$(LIBDIR)\mv$(S)lib;
  100.     $(LB) $(LIBDIR)\mv$(S)lib -+$(S)cdrom.obj ,,$(LIBDIR)\mv$(S)lib;
  101.     $(LB) $(LIBDIR)\mv$(S)lib -+$(S)cdmas.obj ,,$(LIBDIR)\mv$(S)lib;
  102. !endif
  103.  
  104.